package com.itheima.test;

import com.itheima.pojo.User;
import org.junit.Test;

public class Demo {
    @Test
    public void demo(){

        User user = new User();
        user.setUsername("admin10");
        System.out.println(user.getUsername());

        User user2 = new User();
        user2 = user;
        user2.setUsername("aaaaa");

        System.out.println(user.getUsername());

    }

}
